package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.OutStore;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface OutStoreRemote {

    @RequestMapping("getOutStoreList")
    @ResponseBody
    ResponseMsg getOutStoreList(@RequestBody Map<String, Object> map);

    @RequestMapping("delOutStore")
    @ResponseBody
    ResponseMsg delOutStore(@RequestParam("id") Integer id);

    @RequestMapping("addOutStore")
    @ResponseBody
    ResponseMsg addOutStore(@RequestBody OutStore OutStore);


    @RequestMapping("getOutStoreByCode")
    @ResponseBody
    ResponseMsg getOutStoreByCode(@RequestParam("code") String code);

    @RequestMapping("updateStatus")
    @ResponseBody
    ResponseMsg changeStatus(@RequestParam("code") String code,@RequestParam("status")int status);
}
